package com.gdssoft.pdaweb.model.water;

/*
 *  捷达世软件（深圳）有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
 */
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.gdssoft.framework.model.system.Department;
import com.gdssoft.pdaweb.model.PdaMdAssetInfo;

public class PdaWaterMeter extends com.gdssoft.core.model.BaseModel {

	private static final long serialVersionUID = 1L;
	private String amId;
	private String position;
	private String upId;
	private String districtId;
	private String buildingId;
	private String aparmentId;
	private String meterKind;
	private String meterHl;
	private String clientId;
	private String indoor;
	private String wlevel;
	private String defaultRecorderId;
	private String type;
	private String setDate;
	private String inputDate;
	private String inputId;
	private String useDate;
	private String useAcceptid;
	private String meterBrand;
	private String meterModel;
	private String isLongDistance;
	private String isCharge;
	private String isAddPressure;
	private String isProportion;
	private Integer maxValue;
	private Integer warnvalue;
	private String platcoordinates;
	private String expressionId;
	private String clearId;
	private String createddt;
	private String createdby;
	private String lasteditdt;
	private String lasteditby;
	private String remark;
	private String aparmentName;
	private String isPlanned;
	private Integer initDegree;
	private Float timesNum; // 倍率
	private String isAlert; //是否换表
	private Department department;
	private PdaMdAssetInfo pdaMdAssetInfo;

	private Integer toCrmFlag;
	
	public PdaWaterMeter() {
		super();
	}

	public PdaWaterMeter(String in_amId) {
		this.setAmId(in_amId);
	}


	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getIsAlert() {
		return isAlert;
	}
	public void setIsAlert(String isAlert) {
		this.isAlert = isAlert;
	}
	
	public Integer getInitDegree() {
		return initDegree;
	}

	public void setInitDegree(Integer initDegree) {
		this.initDegree = initDegree;
	}

	public String getAmId() {
		return this.amId;
	}

	public void setAmId(String aValue) {
		this.amId = aValue;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String aValue) {
		this.position = aValue;
	}

	public String getUpId() {
		return this.upId;
	}

	public void setUpId(String aValue) {
		this.upId = aValue;
	}

	public String getDistrictId() {
		return this.districtId;
	}

	public void setDistrictId(String aValue) {
		this.districtId = aValue;
	}

	public String getBuildingId() {
		return this.buildingId;
	}

	public void setBuildingId(String aValue) {
		this.buildingId = aValue;
	}

	public String getAparmentId() {
		return this.aparmentId;
	}

	public void setAparmentId(String aValue) {
		this.aparmentId = aValue;
	}

	public String getMeterKind() {
		return this.meterKind;
	}

	public void setMeterKind(String aValue) {
		this.meterKind = aValue;
	}

	public String getMeterHl() {
		return this.meterHl;
	}

	public void setMeterHl(String aValue) {
		this.meterHl = aValue;
	}

	public String getClientId() {
		return this.clientId;
	}

	public void setClientId(String aValue) {
		this.clientId = aValue;
	}

	public String getIndoor() {
		return this.indoor;
	}

	public void setIndoor(String aValue) {
		this.indoor = aValue;
	}

	public String getWlevel() {
		return this.wlevel;
	}

	public void setWlevel(String aValue) {
		this.wlevel = aValue;
	}

	public String getDefaultRecorderId() {
		return this.defaultRecorderId;
	}

	public void setDefaultRecorderId(String aValue) {
		this.defaultRecorderId = aValue;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String aValue) {
		this.type = aValue;
	}

	public String getSetDate() {
		return this.setDate;
	}

	public void setSetDate(String aValue) {
		this.setDate = aValue;
	}

	public String getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(String aValue) {
		this.inputDate = aValue;
	}

	public String getInputId() {
		return this.inputId;
	}

	public void setInputId(String aValue) {
		this.inputId = aValue;
	}

	public String getUseDate() {
		return this.useDate;
	}

	public void setUseDate(String aValue) {
		this.useDate = aValue;
	}

	public String getUseAcceptid() {
		return this.useAcceptid;
	}

	public void setUseAcceptid(String aValue) {
		this.useAcceptid = aValue;
	}

	public String getMeterBrand() {
		return this.meterBrand;
	}

	public void setMeterBrand(String aValue) {
		this.meterBrand = aValue;
	}

	public String getMeterModel() {
		return this.meterModel;
	}

	public void setMeterModel(String aValue) {
		this.meterModel = aValue;
	}

	public String getIsLongDistance() {
		return this.isLongDistance;
	}

	public void setIsLongDistance(String aValue) {
		this.isLongDistance = aValue;
	}

	public String getIsCharge() {
		return this.isCharge;
	}

	public void setIsCharge(String aValue) {
		this.isCharge = aValue;
	}

	public String getIsAddPressure() {
		return this.isAddPressure;
	}

	public void setIsAddPressure(String aValue) {
		this.isAddPressure = aValue;
	}

	public String getIsProportion() {
		return this.isProportion;
	}

	public void setIsProportion(String aValue) {
		this.isProportion = aValue;
	}

	public Integer getMaxValue() {
		return this.maxValue;
	}

	public void setMaxValue(Integer aValue) {
		this.maxValue = aValue;
	}

	public Integer getWarnvalue() {
		return this.warnvalue;
	}

	public void setWarnvalue(Integer aValue) {
		this.warnvalue = aValue;
	}

	public String getPlatcoordinates() {
		return this.platcoordinates;
	}

	public void setPlatcoordinates(String aValue) {
		this.platcoordinates = aValue;
	}

	public String getExpressionId() {
		return this.expressionId;
	}

	public void setExpressionId(String aValue) {
		this.expressionId = aValue;
	}

	public String getClearId() {
		return this.clearId;
	}

	public void setClearId(String aValue) {
		this.clearId = aValue;
	}

	public String getCreateddt() {
		return this.createddt;
	}

	public void setCreateddt(String aValue) {
		this.createddt = aValue;
	}

	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String aValue) {
		this.createdby = aValue;
	}

	public String getLasteditdt() {
		return this.lasteditdt;
	}

	public void setLasteditdt(String aValue) {
		this.lasteditdt = aValue;
	}

	public String getLasteditby() {
		return this.lasteditby;
	}

	public void setLasteditby(String aValue) {
		this.lasteditby = aValue;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aValue) {
		this.remark = aValue;
	}

	public String getAparmentName() {
		return aparmentName;
	}

	public void setAparmentName(String aparmentName) {
		this.aparmentName = aparmentName;
	}

	public String getIsPlanned() {
		return isPlanned;
	}

	public void setIsPlanned(String isPlanned) {
		this.isPlanned = isPlanned;
	}

	public Float getTimesNum() {
		return timesNum;
	}

	public void setTimesNum(Float timesNum) {
		this.timesNum = timesNum;
	}

	public boolean equals(Object object) {
		if (!(object instanceof PdaWaterMeter)) {
			return false;
		}
		PdaWaterMeter rhs = (PdaWaterMeter) object;
		return new EqualsBuilder().append(this.amId, rhs.amId)
				.append(this.position, rhs.position)
				.append(this.upId, rhs.upId)
				.append(this.districtId, rhs.districtId)
				.append(this.buildingId, rhs.buildingId)
				.append(this.aparmentId, rhs.aparmentId)
				.append(this.meterKind, rhs.meterKind)
				.append(this.meterHl, rhs.meterHl)
				.append(this.clientId, rhs.clientId)
				.append(this.indoor, rhs.indoor)
				.append(this.wlevel, rhs.wlevel)
				.append(this.defaultRecorderId, rhs.defaultRecorderId)
				.append(this.type, rhs.type).append(this.setDate, rhs.setDate)
				.append(this.inputDate, rhs.inputDate)
				.append(this.inputId, rhs.inputId)
				.append(this.useDate, rhs.useDate)
				.append(this.useAcceptid, rhs.useAcceptid)
				.append(this.meterBrand, rhs.meterBrand)
				.append(this.meterModel, rhs.meterModel)
				.append(this.isLongDistance, rhs.isLongDistance)
				.append(this.isCharge, rhs.isCharge)
				.append(this.isAddPressure, rhs.isAddPressure)
				.append(this.isProportion, rhs.isProportion)
				.append(this.maxValue, rhs.maxValue)
				.append(this.warnvalue, rhs.warnvalue)
				.append(this.platcoordinates, rhs.platcoordinates)
				.append(this.expressionId, rhs.expressionId)
				.append(this.clearId, rhs.clearId)
				.append(this.createddt, rhs.createddt)
				.append(this.createdby, rhs.createdby)
				.append(this.lasteditdt, rhs.lasteditdt)
				.append(this.lasteditby, rhs.lasteditby)
				.append(this.remark, rhs.remark).isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973).append(this.amId)
				.append(this.position).append(this.upId)
				.append(this.districtId).append(this.buildingId)
				.append(this.aparmentId).append(this.meterKind)
				.append(this.meterHl).append(this.clientId).append(this.indoor)
				.append(this.wlevel).append(this.defaultRecorderId)
				.append(this.type).append(this.setDate).append(this.inputDate)
				.append(this.inputId).append(this.useDate)
				.append(this.useAcceptid).append(this.meterBrand)
				.append(this.meterModel).append(this.isLongDistance)
				.append(this.isCharge).append(this.isAddPressure)
				.append(this.isProportion).append(this.maxValue)
				.append(this.warnvalue).append(this.platcoordinates)
				.append(this.expressionId).append(this.clearId)
				.append(this.createddt).append(this.createdby)
				.append(this.lasteditdt).append(this.lasteditby)
				.append(this.remark).toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("amId", this.amId)
				.append("position", this.position).append("upId", this.upId)
				.append("districtId", this.districtId)
				.append("buildingId", this.buildingId)
				.append("aparmentId", this.aparmentId)
				.append("meterKind", this.meterKind)
				.append("meterHl", this.meterHl)
				.append("clientId", this.clientId)
				.append("indoor", this.indoor).append("wlevel", this.wlevel)
				.append("defaultRecorderId", this.defaultRecorderId)
				.append("type", this.type).append("setDate", this.setDate)
				.append("inputDate", this.inputDate)
				.append("inputId", this.inputId)
				.append("useDate", this.useDate)
				.append("useAcceptid", this.useAcceptid)
				.append("meterBrand", this.meterBrand)
				.append("meterModel", this.meterModel)
				.append("isLongDistance", this.isLongDistance)
				.append("isCharge", this.isCharge)
				.append("isAddPressure", this.isAddPressure)
				.append("isProportion", this.isProportion)
				.append("maxValue", this.maxValue)
				.append("warnvalue", this.warnvalue)
				.append("platcoordinates", this.platcoordinates)
				.append("expressionId", this.expressionId)
				.append("clearId", this.clearId)
				.append("createddt", this.createddt)
				.append("createdby", this.createdby)
				.append("lasteditdt", this.lasteditdt)
				.append("lasteditby", this.lasteditby)
				.append("remark", this.remark).toString();
	}


	public PdaMdAssetInfo getPdaMdAssetInfo() {
		return pdaMdAssetInfo;
	}

	public void setPdaMdAssetInfo(PdaMdAssetInfo pdaMdAssetInfo) {
		this.pdaMdAssetInfo = pdaMdAssetInfo;
	}

	public Integer getToCrmFlag() {
		return toCrmFlag;
	}

	public void setToCrmFlag(Integer toCrmFlag) {
		this.toCrmFlag = toCrmFlag;
	}
}
